<?php

namespace common\models\DAO;

use Yii;

/**
 * This is the model class for table "mx_user_cash".
 *
 * @property string $id
 * @property string $userID
 * @property string $money
 * @property integer $status
 * @property string $order
 * @property string $createTime
 * @property string $updateTime
 * @property string $bankCard
 */
class UserCash extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'mx_user_cash';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['userID', 'money', 'order', 'createTime', 'bankCard'], 'required'],
            [['userID', 'money', 'status', 'createTime', 'updateTime'], 'integer'],
            [['order', 'bankCard'], 'string', 'max' => 30],
            [['order'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => '主键id',
            'userID' => '用户id',
            'money' => '提现金额',
            'status' => '提现状态0：提现失败，1提现成功，2提现中2',
            'order' => '订单号',
            'createTime' => '创建时间',
            'updateTime' => '提现成功时间',
            'bankCard' => '提现卡号',
        ];
    }
}
